<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>日历</title>
    <link rel="stylesheet" href="./style/calendar.css">
</head>

<body>
    <div id="app" v-cloak>
        <div class="con">
            <h1>
                {{date}}
            </h1>
            <ul class="nav">
                <li @click='lastMonth'>
                    <</li>
                        <li @click='nextMonth'>></li>
                        <li @click='demo'>today</li>
            </ul>
            <ul class="con-tittle">
                <li v-for='item of weeks'>
                    {{item}}
                </li>
            </ul>
            <ul class="con-body">
                <li v-for='item of days'>
                    {{item}}
                </li>
            </ul>
        </div>
    </div>
</body>
<script src="./js/vue.js"></script>
<script src="./js/calendar.js"></script>

</html>